/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package com.cn.xiaonuo.tcrfinance.tcrbanner.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.tcrfinance.tcrbanner.entity.PvBanner;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PvBannerMapper extends BaseMapper<PvBanner> {

    /**
     * 首页查看Banner
     *
     * @param type
     * @return
     */
    List<Map<String, Object>> queryBanners(@Param("type") Integer type);

    List<Map<String,Object>> selectBanners();

}
